﻿%option noyywrap
%{
#include<stdio.h>
#include<stdlib.h>
#include<set>
#include<string>
#include<iostream>
using namespace std;


static char *id_number = "201492235";
int count=0,uniq=0;
set<long long int> table;
%}
digit		[0-9]
digit9		^{digit}{9}
specnum		{digit}+(.{digit}+)?
%%
{digit9}	{	
			printf("201492235");
			count++;
			table.insert(atoi(yytext));
		}


"NAME"$		{
			printf("ZJH");
		}
{specnum}	

{
			long long int temp=0;
			temp=(long long int)(atof(yytext)*2+201492235);
			cout<<temp;
			count++;
			table.insert(temp);
		}
.		{ECHO;}
%%
int main()
{
	yylex();
	printf("出现次数:%d\t去重后次数:%d",count,table.size());
	return 0;
}
